Auto Play: ON
LMS
Achievement
1 / 3

November Monthly KPI

November

For the LMS Team

Fizul Haque
Samiul Islam
Moin Sharif

Team Members

Our dedicated LMS team
Fizul Haque
Samiul Islam
Moin Sharif
3
Team Members
25
November Achievements
9
December Plans
Fizul Haque Samiul Islam Moin Sharif
Thank You!
For your attention and support

LMS Team

Questions? Contact us at info@orbittechinc.com

1 / 12
// Mouse wheel slide control let scrollCount = 0; let lastScrollTime = 0; function handleWheel(e) { if (isAutoPlaying) stopAutoPlay(); e.preventDefault(); const now = Date.now(); // Reset count if scrolls are too far apart (>1 second gap) if (now - lastScrollTime > 1000) { scrollCount = 0; } lastScrollTime = now; // Increase scroll count scrollCount++; // Only change slide every 3 scrolls if (scrollCount >= 2) { scrollCount = 0; // reset counter if (isOverlayActive) { if (e.deltaY > 0) nextImage(); else previousImage(); } else { if (e.deltaY > 0) nextSlide(); else previousSlide(); } } } // Auto-play function startAutoPlay() { if (isAutoPlaying) return; isAutoPlaying = true; document.getElementById('autoPlayIndicator').classList.add('active'); autoPlayInterval = setInterval(() => { nextSlide(); }, 5000); } function stopAutoPlay() { if (!isAutoPlaying) return; isAutoPlaying = false; document.getElementById('autoPlayIndicator').classList.remove('active'); if (autoPlayInterval) clearInterval(autoPlayInterval); } // ====================== // 🔹 IMAGE OVERLAY LOGIC // ====================== function setupImageOverlay() { const achievementItems = document.querySelectorAll('.achievement-item'); const imageOverlay = document.getElementById('imageOverlay'); const closeOverlay = document.getElementById('closeOverlay'); const overlayImage = document.getElementById('overlayImage'); const imageCounter = document.getElementById('imageCounter'); // Open overlay on item click achievementItems.forEach(item => { item.addEventListener('click', () => { const imagesData = item.getAttribute('data-images'); if (imagesData) { try { currentImages = JSON.parse(imagesData); currentImageIndex = 0; showImageOverlay(); } catch (e) { console.error('Error parsing images data:', e); } } }); }); // Close overlay closeOverlay.addEventListener('click', closeImageOverlay); // Close overlay when clicking outside the image imageOverlay.addEventListener('click', (e) => { if (e.target === imageOverlay) { closeImageOverlay(); } }); }